﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CUiSearchScope
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using DnProcessSimulateCommands.AssignDataFromTC;
using System.Drawing;
using System.Windows.Media;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands;

public class CUiSearchScope
{
  public CUiSearchScope(
    string uid,
    string scopeName,
    string scopeViewId,
    string viewItemId,
    string viewRevisionId,
    bool isPlant)
  {
    this.Uid = uid;
    this.NiceName = scopeName;
    this.ScopeViewId = scopeViewId;
    this.ScopeItemId = viewItemId;
    this.ScopeRevisionId = viewRevisionId;
    this.Checked = true;
    this.Image = isPlant ? (Image) AssignDataFromTCResources.plant16 : (Image) AssignDataFromTCResources.AssemblyPart;
    this.ImageSrc = isPlant ? TxImageManager.GetImageByKey("Plant").ConvertTo<ImageSource>(new Size()) : TxImageManager.GetImageByKey("ProductTc").ConvertTo<ImageSource>(new Size());
  }

  public string Uid { get; private set; }

  public bool Checked { get; set; }

  public string NiceName { get; private set; }

  public string ScopeViewId { get; private set; }

  public string ScopeItemId { get; private set; }

  public string ScopeRevisionId { get; private set; }

  public Image Image { get; private set; }

  public ImageSource ImageSrc { get; private set; }
}
